package com.huadao.cart_ccs.base;

import com.huadao.cart_ccs.data.bo.Protocol;
import com.huadao.cart_ccs.data.source.serialport.SerialPortSource;

public class BaseSerialPortModel extends BaseModel {
    protected int serialPortRequest(Protocol protocol) {
        return SerialPortSource.instance().serialPortRequest(protocol);
    }

    protected int serialPortRequest(String command) {
        return SerialPortSource.instance().serialPortRequest(command);
    }

    protected void serialPortRequest(byte[] data) {
        SerialPortSource.instance().serialPortRequest(data);
    }

    protected void seralPortRequest(String command) {
        SerialPortSource.instance().serialPortRequest(command);
    }

}
